package com.music.common.core.enums;


public enum ExceptionCode {
    INVALID_KAPTCHA(100100, "短信验证码错误"),
    INVALID_USERNAME_PASSWORD(100101, "无效的用户名或密码"),
    INVALID_USERNAME(100111, "用户不存在"),
    INVALID_PASSWORD(100121, "密码不正确"),
    JSON_CONVERTION_EXCEPTION(100102, "JSON转换异常"),
    PLAY_TIME_CONFICTION(100103, "电影播放时间冲突"),
    USER_ACCOUNT_IN_USE(100104, "用户账号已经被注册"),
    SEAT_ALREADY_SOLD(100105, "您选的座位已经售出，请重新选择"),
    CELL_PHONE_VERIFY_CODE_LIMIT(100106, "5分钟内最多只能申请3次短信验证码"),

    UNAUTH(401, "没有权限"),
    ERROR_ORDERID(100107, "错误的订单号或者订单已过期"),
    MAKR_ORDER_ERROR(100108, "订单生成失败"),
    USER_STATUS_CHECK_ERROR(100109, "用户已注销"),
    USER_GETINFO_LIMIT(100110, "请求过于频繁，请5分钟后再试"),
    INVALID_CAPTCHA_OUT_OF_TIME(100111, "短信验证码已过期"),
    USER_ALREADY_REGISTERED(100112, "用户已注册"),
    INVALID_ACTIVATE_USER_ACCOUNT(100113, "充值用户不存在");

    ExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
